//
//@File    :	3.14_typecast.cpp
//@Time    :	2021/08/02 20:35:22
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	forcing type changes
//

#include <iostream>

int main()
{
    using namespace std;
    int auks,bats,coots;
    auks = 19.99 + 11.99;
    bats = (int)19.99 + (int)11.99;
    coots = int(19.99) + int(11.99);

    cout<<"auks = "<<auks<<",bats = "<<bats;
    cout<<",coots = "<<coots<<endl;

    char ch = 'Z';
    cout<<"The code for "<<ch<<"is";
    cout<<int(ch)<<endl;
    cout<<"Yes,the code is";
    cout<<static_cast<int>(ch)<<endl;
    
    system("pause");
    return 0;
}